package models

// import "gorm.io/gorm"

type User struct {
	ID       uint    `gorm:"primaryKey;autoIncrement;not null" json:"id,omitempty"` // 使用 omitempty，避免为零值时传送
	Username string  `gorm:"not null" json:"username"`
	Password string  `gorm:"not null" json:"password"`
	Userpic  *string `gorm:"not null" json:"userpic"`
}

/*
{
    "username": "exampleUser",
    "password": "examplePassword",
    "userpic": "http://example.com/path/to/userpic.jpg"
}
*/
